package VolatileDemo;

public class Girl extends Thread{
    @Override
    public void run() {
        while (Money.money == 100000){
        }
        System.out.println("结婚基金不是十万了");

        /*while (true){
            synchronized (Money.lock){
                if (Money.money != 100000){
                    System.out.println("结婚基金不是十万了");
                    break;
                }
            }
        }*/

    }
}
